package com.lopo.smstest;

public class SmsFactory {
    public static SendSmsHandler getSmsHandler(Integer type) {
        if (type == null) {
            return null;
        }
        if (type.equals(SmsContract.SPEEDING_TYPE)) {
            return new SpeedingSms();
        }
        return new LoginSms();
    }
}
